optimization - Jekyll 编译似乎太慢了
全部标签 我正在使用jekyllstaticsitebuilder,我有难以执行以下操作:{%forcategoryinsite.categories%}{{category[0]}}{%forpostinsite.categories[{{category}}]%}{{post.title}}{%endfor%}↩{%endfor%}我的jekyll站点中有一个名为“测试”的帖子类别,我可以使用以下内容显示来自它的帖子:{%forpostinsite.categories.test%}{{post.title}}{%endfor%}但是,我想自动构建一个存档页面,并按顺序为此,我需要
这是我正在使用的列表。-name:Game1platforms:{win32,win64,linux64}distribution:-name:hereurl:null-name:desuraurl:http://www.desura.com/games/Game1source:https://github.com/name/Game1description:cg/games/Game1/description.htmlrelease:2013-06-23这是它抛出的错误:jekyll2.2.0|Error:(C:/Users/User/jekyll-site/_data/games.
我目前正在运行在我的Windows7PC上本地安装和生成Jekyll站点的阶段。我已经安装了所有要求并且可以让Jekyll启动,但我无法让它提供服务。每当我尝试时,它都会返回以下错误:$jekyllserve-tConfigurationfile:c:/wamp/www/ShaunYearStrong.github.io/_config.ymlSource:c:/wamp/www/ShaunYearStrong.github.ioDestination:c:/wamp/www/ShaunYearStrong.github.io/_siteGenerating...c:/Ruby193/
我在Ubuntu上安装Jekyll时遇到了一些问题。以下是我拥有的一些版本:trevor~$ruby-vruby2.2.4p230(2015-12-16revision53155)[x86_64-linux]trevor~$gem-v2.5.1trevor~$rvm-vrvm1.26.11(latest)byWayneE.Seguin,MichalPapis[https://rvm.io/]但是,当我尝试安装Jekyll时,出现以下错误:trevor~$geminstalljekyllBuildingnativeextensions.Thiscouldtakeawhile...ERRO
抱歉,我是Ruby的新手,但我正在尝试向我的模板添加一个liquid标签,我可以循环显示五个最流行标签的列表。出于某种原因,这个插件在我使用时只输出一个标签。这是我在mu插件中的内容:moduleJekyllclassPopularTags这是我在模板中输入的内容:{%popular_tags%} 最佳答案 也可以在没有插件的情况下执行此操作,这意味着它可以在GitHubPages上运行.我已经在myblog上做类似的事情(也没有插件),我在这里显示了一个标签列表,其中包含帖子数,按字母顺序排序。Thesourcecodeisher
我不知道如何在jekyll插件中创建过滤器或标签,以便我可以返回目录并循环遍历其内容。我找到了这些:http://pastebin.com/LRfMVN5Yhttp://snippets.dzone.com/posts/show/302到目前为止我有:moduleJekyllclassFilesTag我可以成功地将图像列表作为字符串返回并打印:{%filestest_string%}但对于我来说,无论我如何从Dir.glob返回数组/散列,我都无法遍历数组。我只想能够做到:{%forimageinfiles%}image{%endfor%}我将需要能够为我将在网站上使用的各种集合不断返
我正在尝试在Github页面上使用Jekyll创建一个多作者博客。我将authors数组字段添加到_config.yml,我可以在帖子模板上使用该数据。_config.yml:authors:muratcorlu:display_name:MuratCorluavatar:2906955ae59c795275979d3782d7bfcaposts.html{%assignauthor=site.authors[page.author]%}Author:{{author.display_name}}现在我想制作一个作者存档页面,其url类似于/authors/muratcorlu/(即列
我是jekyll的新手:到目前为止,我已经完成了教程中提到的内容:这是我在_layout:post.html文件中的内容:---layout:default---{{page.title}}{{page.date|date_to_string}}{{content}}RelatedPosts{%forpostinsite.related_postslimit:3%}{{post.title}}{{post.date|date_to_string}}{%endfor%}我使用名称为2014-01-01-myNewPost.md的md文件,但出现以下错误:Generating...Inva
好的...我有一个项目,我在其中使用Jekyll进行播客项目。我选择通过YAMLFrontMatter项目在shownotes中列出主机:hosts:-NameA-NameB-NameC使用这段代码Hosts:{%forhostinpage.hosts%}{{host}}{%endfor%}我收到了正确的列表Hosts:NameANameBNameC但是,我想通过这样做来MarkdownHosts:{%forhostinpage.hosts%}{{host|markdownify}}{%endfor%}但是Jekyll返回:Hosts:NameANameBNameC任何禁止Jekyll
在Rails中,文件file.css.sass.erb:.class-namewidth:正在抛出错误:InvalidCSSafter"":expectedexpression(e.g.1px,bold),was""它不是应该起作用吗?更新1仍在苦苦挣扎,但我发现如果我将其更改为SCSS语法(文件名和代码),它仍然会导致非常相似的错误。InvalidCSSafter"width:":expectedexpression(e.g.1px,bold),was";"尽管如此,如果我删除scss扩展,保留CSS与文件名file.css.erb,Rails确实按预期编译。然而考虑到我忘记了一些非